package com.stm.bi.enums;


import com.stm.framework.annotation.EnumValue;

/**
 * @author zyp
 * @ClassDesc 新老商品类型
 * @date 2025/09/10 9:20
 **/
@EnumValue
public enum ProductTechnologyType {
    SPECIALIZE("specialize", "深耕"),
    EXPAND("expand", "扩大"),
    ENRICH("enrich", "充实"),
    EXTEND("extend", "扩充");
    /**
     * 字段类型值
     */
    @EnumValue
    private final String value;
    /**
     * 字段类型描述
     */

    private final String desc;

    ProductTechnologyType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static ProductTechnologyType getProductTechnologyType(String value) {
        for (ProductTechnologyType ut : ProductTechnologyType.values()) {
            if (ut.getValue().equals(value)) {
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
